<?xml version="1.0" encoding="UTF-8"?>


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml"/>
 
   
    <xsl:template match="/">
     
        
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

            <fo:layout-master-set>
                <fo:simple-page-master master-name="x" page-height="8.5in"
                    page-width="11in" margin-top="0.5in" margin-bottom="0.5in"
                    margin-left="1in" margin-right="1in">
                    <fo:region-before extent="1in"/>
                    <fo:region-body margin-top="0.5in"/>
                    <fo:region-after extent=".75in"/>
                </fo:simple-page-master>
            </fo:layout-master-set>

            <fo:page-sequence master-reference="x">
                <fo:static-content flow-name="xsl-region-before">
                    <fo:block font-size="14pt" font-family="sans-serif"
                               
                                line-height="24pt" 
                                space-after.optimum="15pt" text-align="center"
                                padding-top="3pt">
                         
                         
                    </fo:block>
                </fo:static-content>
                <fo:static-content flow-name="xsl-region-after">
                    <fo:block font-size="18pt" font-family="sans-serif"
                                line-height="24pt"
                                space-after.optimum="15pt" text-align="center"
                                padding-top="3pt">

                    </fo:block>
                </fo:static-content>
                <fo:flow flow-name="xsl-region-body">
                    <fo:block font-size="14pt" font-family="sans-serif"

                                line-height="24pt" background-color="cyan"
                                space-after.optimum="15pt" text-align="center"
                                padding-top="3pt">
                         Thông Tin Chi Tiet

                    </fo:block>
                    <xsl:for-each select="dstindang/tindang">
                        <fo:block font-size="14pt">
                            Nguoi Dang Tin: <xsl:value-of select="nguoidangtin"/>
                        </fo:block>
                        <fo:block font-size="14pt">
                            Ten Nguoi Dang Tin: <xsl:value-of select="tennguoidangtin"/>
                        </fo:block>
                        <fo:block font-size="14pt">
                            Dien Thoai: <xsl:value-of select="dienthoai"/>
                        </fo:block>
                        <fo:block font-size="14pt">
                            Dien Thoai Di Dong: <xsl:value-of select="dienthoaididong"/>
                        </fo:block>
                        <fo:block font-size="14pt">
                            Email: <xsl:value-of select="email"/>
                        </fo:block>
                        
                        <fo:block>
                            <fo:external-graphic width="340px" height="238px">
                                <xsl:attribute name="src">
                                    <xsl:value-of select="hinhanh"/>
                                </xsl:attribute>
                            </fo:external-graphic>
                        </fo:block>
                        <fo:block color="orange">
                            Cau Truc Và Tien Ich
                        </fo:block>


                        <fo:block>
                            <fo:table  table-layout="fixed">
                                <fo:table-column column-width="11cm"/>
                                <fo:table-column column-width="11cm"/>
                            

                                <fo:table-body>
                                
                                    
                                    <fo:table-row>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Dien tich xay dung:
                                                <xsl:value-of select="dientichxaydung/solieu"/>
                                                <xsl:value-of select="dientichxaydung/dvddientichxaydung"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Loai Dia oc:
                                                <xsl:value-of select="tenloainha"/>
                                            </fo:block>

                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>

                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="40pt">
                                                Chieu ngang:
                                                <xsl:value-of select="chieungangxaydung/solieu"/>
                                                <xsl:value-of select="chieungangxaydung/dvdchieungangxaydung"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Phap ly:
                                                <xsl:value-of select="tenloaigiayto"/>
                                            </fo:block>

                                        </fo:table-cell>

                                    </fo:table-row>
                                    <fo:table-row>

                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="40pt">
                                                Chieu dai   :
                                                <xsl:value-of select="chieudaixaydung/solieu"/>
                                                <xsl:value-of select="chieudaixaydung/dvdchieudaixaydung"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Dia chi:
                                                <xsl:value-of select="diachi"/>
                                            </fo:block>

                                        </fo:table-cell>

                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Dien tich khuon vien:
                                                <xsl:value-of select="dientichkhuonvien/solieu"/>
                                                <xsl:value-of select="dientichkhuonvien/dvddientichkhuonvien"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Khu vuc: - Tinh/Thanh pho:
                                                <xsl:value-of select="khuvuc/tinhthanh"/>
                                            </fo:block>

                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>

                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="40pt">
                                                Chieu ngang:
                                                <xsl:value-of select="chieungangkhuonvien/solieu"/>
                                                <xsl:value-of select="chieungangkhuonvien/dvdchieungangkhuonvien"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="0.8in">
                                                - Quan Huyen     :
                                                <xsl:value-of select="khuvuc/quanhuyen"/>
                                            </fo:block>

                                        </fo:table-cell>

                                    </fo:table-row>
                                    <fo:table-row>

                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="40pt">
                                                Chieu dai   :
                                                <xsl:value-of select="chieudaikhuonvien/solieu"/>
                                                <xsl:value-of select="chieudaikhuonvien/dvdchieudaikhuonvien"/>
                                            </fo:block>

                                        </fo:table-cell>
                                        <fo:table-cell border-color="blue"
                                                        border-width="0.5pt"
                                                        border-style="solid">
                                            <fo:block margin-left="10pt">Gia tien:
                                                <xsl:value-of select="giatien/solieu"/>
                                                <xsl:value-of select="giatien/dvdgiatien"/>
                                            </fo:block>

                                        </fo:table-cell>

                                    </fo:table-row>
                                
                                </fo:table-body>

                            </fo:table>

                        </fo:block>
                    </xsl:for-each>
                </fo:flow>

            </fo:page-sequence>
        </fo:root>
    </xsl:template>

</xsl:stylesheet>
